package com.carl.common.dto.es;


import lombok.Data;

import java.math.BigDecimal;
import java.util.List;


/**
 * es中保存的商品信息
 */
@Data
public class SkuESModel {
    private Long skuId;
    private Long spuId;
    private String subTitle;
    private BigDecimal skuPrice;
    private String skuImg;
    private Long saleCount; //销售数量
    private Boolean hasStock; //是否有库存
    private Long hotScore; //热点分数
    private Long brandId;
    private Long catalogId;
    private String brandName;
    private String brandImg; //品牌图片
    private String catalogName;
    private List<Attrs> attrs; //规格参数

    @Data
    public static class Attrs{
        private Long attrId;
        private String attrName;
        private String attrValue;
    }
}
